﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Unscrambler.Extensions;

namespace UnscramblerUnitTests.Extensions
{
    [TestFixture]
    public class IntExtensionsTests
    {
       
        [Test]
        public void TestValueLessThanOneMinute()
        {
            Assert.IsTrue(59.FormatSecondsAsTime() == "59");

        }

        [Test]
        public void TestOneDigitSecondsValue()
        {
            Assert.IsTrue(8.FormatSecondsAsTime() == "8");
        }

        [Test]
        public void TestValueOverOneMinuteButLessThanTen()
        {
            Assert.IsTrue(125.FormatSecondsAsTime() == "2:05");
        }

        [Test]
        public void TestValueForTwoDigitMinutes()
        {
            Assert.IsTrue(900.FormatSecondsAsTime() == "15:00");
        }

        [Test]
        public void TestValueForSingleDigitHours()
        {
            Assert.IsTrue(3660.FormatSecondsAsTime() == "1:01");
        }

        [Test]
        public void TestValueForDoubleDigitHours()
        {

            Assert.IsTrue(36000.FormatSecondsAsTime() == "10:00");
        }
    }
}
